package com.scalar.chiptrack.adaptor.utac;

import Acme.HtmlObserver;

import java.net.URL;


/**
 * User: ChandraSekhar
 * Date: May 16, 2007
 * Time: 4:30:54 PM
 */
public class UTACHtmlObserver implements HtmlObserver
{
    private String m_downLoadCsvURL = null;

    public String getDownLoadCsvURL() {
        return m_downLoadCsvURL;
    }

    public void setDownLoadCsvURL(String m_downloadCsvURL) {
        this.m_downLoadCsvURL = m_downloadCsvURL;
    }

    public void gotAHREF( String urlString, URL contextUrl, Object clientData )
    {
        if ( urlString == null ) return;
        
        if ( urlString.indexOf( ".CSV" ) != -1 )
        {
            m_downLoadCsvURL = urlString.trim();
            m_downLoadCsvURL = "/Customer/" + m_downLoadCsvURL;
        }
    }
    public void gotAREAHREF( String urlString, URL contextUrl, Object clientData )
    {
        //System.out.println("AREAHREF urlString = "+urlString);
    }
    public void gotBASEHREF( String urlString, URL contextUrl, Object clientData )
    {
        //System.out.println("urlString = "+urlString);
    }
    public void gotBODYBACKGROUND( String urlString, URL contextUrl, Object clientData )
    {
        //System.out.println("urlString = "+urlString);
    }

    public void gotFRAMESRC( String urlString, URL contextUrl, Object clientData )
    {
        //System.out.println("urlString = "+urlString);
    }

    public void gotIMGSRC( String urlString, URL contextUrl, Object clientData )
    {
        //System.out.println("urlString = "+urlString);
    }

    public void gotLINKHREF( String urlString, URL contextUrl, Object clientData )
    {
        //System.out.println("urlString = "+urlString);
    }
}
